package com.feicheng.controller.wx;


import com.feicheng.common.result.ResultInfo;
import com.feicheng.service.IFDistributorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cailongyang
 * @since 2022-01-10
 */
@RestController("/wx/distributor")
@RequestMapping("/wx/distributor")
public class DistributorController {

    @Autowired
    IFDistributorService fDistributorService;

    @PutMapping("/permission")
    public ResultInfo checkDistributor(String account, String password) {
        return fDistributorService.checkPermission(account, password);
    }

}
